#define _CRT_SECURE_NO_WARNINGS 1

#include"sort.h"

void Print(int* a, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
}

void test()
{
	int arr[] = { 21,321,32,2,12,35,2,5,6,8,21,234,3,4,12, 24 ,15,12,154,53,64,34,78,39,3 };
	//int arr[] = { 2,8,1,6,9,3 };
	int sz = sizeof(arr) / sizeof(arr[0]);

	Print(arr, sz);
	//QuickSortNonR(arr, 0, sz - 1);
	//QuickSort(arr, 0, sz - 1);
	QuickSort2(arr, 0, sz - 1);
	Print(arr, sz);
}

int main()
{

	test();
	return 0;
}